package com.company.controller.result;

import lombok.Data;

/**
 * @author
 * @date 2021-07-26 11:54
 */
@Data
public class Results {
    //操作结果编码
    private Integer code;
    //操作数据结果
    private Object data;
    //操作消息
    private  String message;

    public Results() {
    }

    public Results(Integer code) {
        this.code = code;
    }

    public Results(Integer code, Object data) {
        this.code = code;
        this.data = data;
    }

    public Results(Integer code, Object data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }
}
